package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/8/28 14:29
*/

// CGGameAUActivity 云游戏AU首页活动配置表
type CGGameAUActivity struct {
	ID           int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	ActivityName string         `json:"activity_name" gorm:"column:activity_name;type:varchar(512);not null;default:'';comment:活动名称"`
	ActivityUrl  string         `json:"activity_url" gorm:"column:activity_url;type:varchar(512);not null;default:'';comment:活动对应的Url"`
	ActivityType int            `json:"activity_type" gorm:"column:activity_type;type:tinyint;not null;default:0;comment:活动类型；1热门活动推荐 2新手福利 3成长任务"`
	Operator     string         `json:"operator" gorm:"column:operator;type:varchar(64);not null;default:'';comment:操作人"`
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt    gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUActivity) TableName() string {
	return "cg_game_au_activity"
}
